package com.service;

import com.pojo.TbWorker;
import com.util.JSONResult;

public interface WorkerService  {
    JSONResult findAllWorkerByWorkerName(int page, int limit, String workerName);

    JSONResult findAllWorkerByState(int page, int limit, int state);

    JSONResult addWorker(TbWorker worker);

    JSONResult deleteWorker(int workerId);

    JSONResult updateWorker(TbWorker worker);

    JSONResult findWorkerById(int workerId);

    JSONResult findAllWorker(int page, int limit);
}
